package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.CarNumberCompany1;
import com.example.demo.entity.CarNumberCompany2;
import com.example.demo.repository.CarNumberCompanyRepository2;
@Service
public class CarNumberCompanyService2 extends BaseService<CarNumberCompany2, Integer>{

	@Autowired
	private CarNumberCompanyRepository2  CarNum2DAO;
	
	public List<CarNumberCompany2> findByCarNumberCompany(CarNumberCompany1 carNum1) {
		
		return CarNum2DAO.findByCarNumberCompany(carNum1);
	}

public CarNumberCompany2 findByCarNumberCompany2(Integer carNum1) {
		
		return CarNum2DAO.findByCarNumberCompany2(carNum1);
	}


}
